﻿<?php

/*
 * action : AutoRegister
 * param: 
 * return: uid、sex、money、rmb、coin、login_days、is_get、history[2] (total_win、total_lose)、total_borad、total_win、exp
 */

include_once("httpclient.php");
include_once('config.php');
$url_prefix = Config::$url_prefix;

$action = "AutoRegister";

$param = array();
$param['channel_id'] = 0;
//$param['name'] = "";
$param['puid'] = "ffffffff-c731-9d10-tttt-fffff3e01c24";
$query = array();

$query['action'] = $action;
$query['ver'] = Config::$ver;
$query['param'] = json_encode($param);

$url = $url_prefix . http_build_query($query);
/*var_dump(urldecode($url));
exit;*/
$client = new HttpClient();
echo "<pre />";
echo $client->get($url);
?>
